Skip to content

Conversation

@JGamache-autodesk
Copy link
Collaborator

Required lighting changes since some function disappeared. Required updated unit test due to improved blending of the triplanar projection node.

Required lighting changes since some function disappeared.
Required updated unit test due to improved blending of the triplanar
projection node.
vec3 comp = mx_ggx_energy_compensation(NdotV, avgAlpha, F);
vec3 Li = mix(g_specularI, g_diffuseI, avgAlpha);
return Li * F * G * comp;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a backup of the file one level above this and will work with MaterialX 1.38.4 to 1.38.7.

{
return vec3(0);
return vec3(0.0);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the latest mx_environment_none.glsl from MaterialX.

vec3 Li = mayaGetSpecularEnvironment(N, V, phongExp);

return Li * F * G * comp;
return Li * FG;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the latest mx_environment_prefilter.glsl from MaterialX and adapted it for Maya lighting.

vec3 Y = normalize(cross(N, X));
X = cross(Y, N);
X = normalize(X - dot(X, N) * N);
vec3 Y = cross(N, X);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the latest mx_environment_fis.glsl from MaterialX and adapted it for Maya lighting.

Copy link
Collaborator

@vlasovi vlasovi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 12, 2023
@JGamache-autodesk
Copy link
Collaborator Author

@seando-adsk Ready for merge.

@seando-adsk seando-adsk merged commit 28fa170 into dev Sep 13, 2023
@seando-adsk seando-adsk deleted the gamaj/EMSUSD-612/support_materialx_1_38_8 branch September 13, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants